feat(pruner): add default resource limits to controller and webhook - #4066
infernus01 wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4066 +/- ##
==========================================
- Coverage 27.66% 27.60% -0.06%
==========================================
Files 477 477
Lines 25469 25524 +55
==========================================
Hits 7046 7046
- Misses 17699 17754 +55
Partials 724 724
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
b3d1d85 to
b0050f9
Compare
b0050f9 to
ff5b47f
Compare
|
/lgtm |
|
@infernus01 Please addd release note |
Signed-off-by: Shubham Bhardwaj <shubbhar@redhat.com>
ff5b47f to
d9e55fe
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/lgtm |
Summary
Adds default resource requests and limits for
tekton-pruner-controllerandtekton-pruner-webhookdeployments in the operator.Changes
Modified
pkg/reconciler/kubernetes/tektonpruner/transform.goto include a newaddDefaultResourceLimits()transformer that injects defaultresource specifications:
tekton-pruner-controller
tekton-pruner-webhook
Rationale
Benchmark data: Testing showed the pruner controller uses 846-1126 MB heap memory when tracking 26k-38k resident PipelineRuns in its informer cache.
Override Mechanism
These defaults can be overridden via TektonConfig or TektonPruner CR:
The transformer runs before the options transformer, so user-specified values take precedence.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make test lintbefore submitting a PRSee the contribution guide for more details.
Release Notes